package com.liusha.quicksand.service;

import com.liusha.quicksand.po.Type;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: 一世长安一世欢
 * @Date: 2020/10/28
 * @Time: 14:03
 * @Description: No Description
 */
public interface TypeService {


        Type saveType(Type type);

        Type getType(Long id);

        Page<Type> listType(Pageable pageable);

        Type updateType(Long id,Type type);

        void deleteType(Long id);

        Type getTypeByName(String name);

        List<Type> listTypeTop(Integer size);

        List<Type> listType();

}
